Component({
    properties: {
        title: String,
        routerBack: {
            type: Boolean,
            value: true
        },
        height: String,
        bgImgUrl: String,
    },
    data: {
        navInfo: null,
        showWhiteBar: false
    },
    lifetimes: {
        attached: function() { // 在组件实例进入页面节点树时执行
            this.setData({
                navInfo: getApp().globalData.navInfo
            })
        },
    },
    methods: {
        routerGo() {
            wx.navigateBack({
                delta: 1
            })
        },
        setWhiteBar(showWhiteBar) {
            this.setData({ showWhiteBar })
        }
    }
})